package com.pucong.gitee.database.backup.common.entity.database.dto;

import com.pucong.gitee.database.backup.common.selfenum.TreeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("查询树信息")
public class SelectDbBackTreeDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiParam(value = "当前节点id")
    private String uuid;

    @ApiParam(value = "数据源id")
    private String dataSourceId;

    @ApiParam(value = "当前节点类型")
    private TreeType treeType;

    @ApiParam(value = "数据库名称")
    private String databaseName;

    @ApiParam(value = "模式名称")
    private String SchemaName;

    @ApiParam(value = "表名称")
    private String tableName;

    public void setTreeType(int value) {
        this.treeType = TreeType.findEnumByValue(value);
    }
}